import { UnitInfo } from "../../../../Model/Generate/Share/Message/OuterMessage_C_10001";
import { NumericComponent } from "../../../../Model/Share/Module/Numeric/NumericComponent";
import { Unit } from "../../../../Model/Share/Module/Unit/Unit";

export class UnitHelper {

    public static CreateUnitInfo(unit: Unit): UnitInfo {
        let unitInfo = new UnitInfo();
        let nc = unit.GetComponent<NumericComponent>(NumericComponent);
        unitInfo.UnitId = unit.Id;
        unitInfo.ConfigId = unit.ConfigId;

        return unitInfo;
    }

}